home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / edit / thesrc20.zip / defines.h < prev    next >
Text File  |  1995-01-26  |  6KB  |  114 lines

  1. /*
  2.  * THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  3.  * Copyright (C) 1991-1995 Mark Hessling
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License as
  7.  * published by the Free Software Foundation; either version 2 of
  8.  * the License, or any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13.  * General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to:
  17.  *
  18.  *    The Free Software Foundation, Inc.
  19.  *    675 Mass Ave,
  20.  *    Cambridge, MA 02139 USA.
  21.  *
  22.  *
  23.  * If you make modifications to this software that you feel increases
  24.  * it usefulness for the rest of the community, please email the
  25.  * changes, enhancements, bug fixes as well as any and all ideas to me.
  26.  * This software is going to be maintained and enhanced as deemed
  27.  * necessary by the community.
  28.  *
  29.  * Mark Hessling                     email: M.Hessling@gu.edu.au
  30.  * 36 David Road                     Phone: +61 7 849 7731
  31.  * Holland Park                      Fax:   +61 7 875 5314
  32.  * QLD 4121
  33.  * Australia
  34.  */
  35.  
  36. /*
  37. $Id: DEFINES.H 2.0 1995/01/26 16:34:30 MH Release MH $
  38. */
  39.  
  40. /*---------------------------------------------------------------------*/
  41. /* The following values can be changed to suit your needs.             */
  42. /*---------------------------------------------------------------------*/
  43.  
  44. #define MAX_FILE_NAME              255  /* maximum length of fully qualified file */
  45. #define MAX_MACRO_DIRS              20  /* maximum number of directories in THE_MACRO_PATH */
  46. #define MAX_COMMAND_LENGTH         150  /* maximum length of a command */
  47. #define MAX_LENGTH_OF_LINE        2048  /* default maximum length of a line */
  48. #define MAX_COMMANDS                10  /* default maximum number of commands allowed on command line */
  49. #define MAX_RECV                    20  /* number of lines that can be recovered */
  50. #define MAX_SAVED_COMMANDS          20  /* number of commands that can be retrieved */
  51. #define MAX_NUMTABS                 32  /* number of tab stops that can be defined */
  52.  
  53. #if defined(SYSVR4)
  54. #   define THE_HOME_DIRECTORY          "/opt/THE/"
  55. #else
  56. #   define THE_HOME_DIRECTORY          "/usr/local/THE/"
  57. #endif
  58.  
  59. /*---------------------------------------------------------------------*/
  60. /* The following macros may need to be changed for your paltform. These*/
  61. /* macros can be changed in this file or added to the compile command  */
  62. /* in the makefile.                                                    */
  63. /*---------------------------------------------------------------------*/
  64. /* NO_RENAME define this if your standard libraries do not have the    */
  65. /*           rename() function.                                        */
  66. /*           Known systems without rename(): ATT System V 3.2,         */
  67. /*           Xenix 2.3                                                 */
  68. /*---------------------------------------------------------------------*/
  69. /*#define NO_RENAME*/
  70.  
  71. /*---------------------------------------------------------------------*/
  72. /* NO_KEYPAD define this if your curses library does not have the      */
  73. /*           keypad() function.                                        */
  74. /*           This macro is set automatically for BSD compatible curses */
  75. /*           libraries.                                                */
  76. /*---------------------------------------------------------------------*/
  77. /*#define NO_KEYPAD*/
  78.  
  79. /*---------------------------------------------------------------------*/
  80. /* NO_CURS_SET define macro if your curses library does not have the   */
  81. /*             curs_set() function.                                    */
  82. /*             This macro is set automatically if the curses version is*/
  83. /*             either a BSD version, or is a System V release less than*/
  84. /*             3.1, or if using AIX Extended Curses (USE_EXTCURS macro */
  85. /*             is defined).                                            */
  86. /*---------------------------------------------------------------------*/
  87. /*#define NO_CURS_SET*/
  88.  
  89. /*---------------------------------------------------------------------*/
  90. /* USE_NOTIMEOUT define this macro if you do not want to be able to use*/
  91. /*               the ESCAPE key as a valid function key.               */
  92. /*---------------------------------------------------------------------*/
  93. /*#define USE_NOTIMEOUT*/
  94.  
  95. /*---------------------------------------------------------------------*/
  96. /* BSD_STANDOUT change this if you are compiling with BSD curses and   */
  97. /*              your BSD curses defines its STANDOUT macro different   */
  98. /*              from the "standard" BSD macro value of _STANDOUT.      */
  99. /*              A known "non-standard" BSD is FreeBSD which uses       */
  100. /*              __WSTANDOUT.                                           */
  101. /*---------------------------------------------------------------------*/
  102. #define BSD_STANDOUT _STANDOUT
  103.  
  104. /*---------------------------------------------------------------------*/
  105. /* The following values should not be changed unless you know what you */
  106. /* are doing !                                                         */
  107. /*---------------------------------------------------------------------*/
  108. typedef unsigned char  ROWTYPE;
  109. typedef unsigned char  COLTYPE;
  110. typedef unsigned char  CHARTYPE;
  111. typedef unsigned short LENGTHTYPE;
  112. typedef long           LINETYPE;
  113. typedef unsigned char  SELECTTYPE;
  114.